home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / samples / grafix.tex < prev    next >
Encoding:
Text File  |  1989-11-22  |  593 b   |  22 lines

  1. \def\grafix#1,#2,#3,#4{
  2.    \setbox1\vbox{\centerline{\vbox to#1{
  3.       \hbox to#2{\special{position,include #3}\hss}\vss}
  4.    }}
  5.    {\vbox{\ifnum#4>0\hrule\fi
  6.       \hbox{\ifnum#4>0\vrule\fi\hskip 1pt
  7.          \vbox{\vskip 1pt
  8.             \box1
  9.             \vskip 1pt}
  10.          \hskip 1pt
  11.       \ifnum#4>0\vrule\fi}
  12.    \ifnum#4>0\hrule\fi}}}
  13.  
  14. This is a test of how some graphics might be centered in the file itself.
  15. It may not work, but it is worth a try.
  16.  
  17. \grafix 2.3truein,2.3truein,{pseal.tex},0
  18.  
  19. Then again, it might.  We shall see, we shall see.  This is Tomas Rokicki,
  20. signing off.
  21. \bye
  22.